package com.lzc.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 文章信息类
 */
@Setter
@Getter
@ToString
@TableName("article")
public class Article {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long uid;

    private String title;

    @TableField("cover_img")
    private String coverImg;

    @TableField("article_url")
    private String articleUrl;

    private Integer state;

    @TableField("create_time")
    private LocalDateTime createTime;
}
